import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

let defaultname="北京"
    defaultname=localStorage.city

const state={
	city:defaultname
}

const mutations={
	changCity(state,CityName){
		state.city=CityName;
		localStorage.city=CityName
	}

}

export default new Vuex.Store({
	state,
	mutations
})
